package com.sloth.bear.dto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sloth.bear.constant.CategoryType;
import com.sloth.bear.dto.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class Category extends BaseEntity {

    /**
     * 类型
     */
    private CategoryType type;

    /**
     * 父分类ID
     */
    private Long parentId;

    /**
     * 分类名称
     */
    private String name;

    /**
     * 分类描述
     */
    private String description;

    /**
     * 排序序号
     */
    private Integer sortNo;
}